home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Esportes / Board.swf / scripts / DefineSprite_213 / frame_9 / DoAction.as
Text File  |  2006-06-13  |  1KB  |  51 lines

  1. if(nojump == "1")
  2. {
  3.    jumpower /= "1.3";
  4. }
  5. if(eval("boardoanim:mute") == "3")
  6. {
  7.    set("../:score",eval("../:score") + "10");
  8. }
  9. if(jumpcount < jumpower / "2")
  10. {
  11.    jumpheight = jumpower / jumpcount;
  12. }
  13. else
  14. {
  15.    jumpheight = jumpower / (jumpower - jumpcount) * (- "1");
  16. }
  17. jumpscale += jumpheight / "2";
  18. if("0" < jumpscale)
  19. {
  20.    _xscale = jumpscale;
  21.    _yscale = jumpscale;
  22.    setProperty("../snowtrail", _Y, getProperty("../snowtrail", _Y) - (eval("../:gamespeed") / "2" + "5"));
  23.    setProperty("../shadow", _Y, getProperty("../shadow", _Y) + jumpheight / "2");
  24.    setProperty("../shadow", _yscale, getProperty("../shadow", _yscale) - jumpheight / "3");
  25. }
  26. jumpcount += "1";
  27. if(jumpcount >= jumpower)
  28. {
  29.    setProperty("../shadow", _Y, "129");
  30.    setProperty("../shadow", _yscale, "100");
  31.    jumpscale = "100";
  32.    _xscale = "100";
  33.    _yscale = "100";
  34.    if("1" < eval("boardoanim:mute") or eval("boardoanim:muteflip") == "1" or eval("boardoanim:mute360") == "1")
  35.    {
  36.       tellTarget("boardoanim")
  37.       {
  38.          gotoAndStop(11);
  39.       }
  40.       gotoAndPlay(25);
  41.    }
  42.    else
  43.    {
  44.       tellTarget("boardoanim")
  45.       {
  46.          gotoAndStop(10);
  47.       }
  48.       gotoAndPlay(15);
  49.    }
  50. }
  51.